package cn.tedu.demo.beans;

import org.springframework.stereotype.Component;

@Component
public class Pencil {
    private String name;

    public Pencil(){
        name = "铅笔";
        System.out.println("创建了铅笔对象！");
    }

    @Override
    public String toString() {
        return name;
    }
}
